<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}
// 网站到期关闭时间展示HTML
function hook_websitecolsetimehtml($time_start,$time_end,$fastend)
{
	$websitetimehtml['fast_end_website'] = '<style>.websitetip{text-align:center;background:rgba(1, 1, 1, 0.5);height:38px;line-height:38px;font-size:14px;
											position:fixed;z-index:9999;width:100%;bottom:0;color:#fff;}.websitetip a{ color:red;}</style>
											<div class="websitetip">
													<marquee scrollamount="3" direction="left" onMouseOut="this.start()" onMouseOver="this.stop()">
													您的网站'.$fastend.'天后过期，过期后网站将自动关闭（<font color="red">使用期限：'.$time_start.'~'.$time_end.'</font>）请尽快联系管理员续费... 官网：<a href="http://www.ywzongli.com/">http://www.ywozngli.com/</a>
													</marquee>
												</div>';
		$websitetimehtml['start_website'] = '<!DOCTYPE html>
										<html>
										<head>
											<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
											<title>温馨提示</title>
											<meta name="viewport" content="width=device-width, initial-scale=1.0">
											<style type="text/css">
												*{box-sizing:border-box;margin:0;padding:0;font-family:Lantinghei SC,Open Sans,Arial,Hiragino Sans GB,Microsoft YaHei,"微软雅黑",STHeiti,WenQuanYi Micro Hei,SimSun,sans-serif;-webkit-font-smoothing:antialiased}
												body{padding:70px 0;background:#edf1f4;font-weight:400;font-size:1pc;-webkit-text-size-adjust:none;color:#333}
												a{outline:0;color:#3498db;text-decoration:none;cursor:pointer}
												.system-message{margin:20px 5%;padding:40px 20px;background:#fff;box-shadow:1px 1px 1px hsla(0,0%,39%,.1);text-align:center}
												.system-message h1{margin:0;margin-bottom:9pt;color:#444;font-weight:400;font-size:40px}
												.system-message .jump,.system-message .image{margin:20px 0;padding:0;padding:10px 0;font-weight:400}
												.system-message .jump{font-size:14px}
												.system-message .jump a{color:#333}
												.system-message p{font-size:9pt;line-height:20px}
												.system-message .btn{display:inline-block;margin-right:10px;width:138px;height:2pc;border:1px solid #44a0e8;border-radius:30px;color:#44a0e8;text-align:center;font-size:1pc;line-height:2pc;margin-bottom:5px;}
												.success .btn{border-color:#69bf4e;color:#69bf4e}
												.error .btn{border-color:#ff8992;color:#ff8992}
												.info .btn{border-color:#3498db;color:#3498db}
												.copyright p{width:100%;color:#919191;text-align:center;font-size:10px}
												.system-message .btn-grey{border-color:#bbb;color:#bbb}
												.clearfix:after{clear:both;display:block;visibility:hidden;height:0;content:"."}
												@media (max-width:768px){body {padding:20px 0;}}
													@media (max-width:480px){.system-message h1{font-size:30px;}}
											</style>
										</head>
										<body>
										<div class="system-message error">
											<div class="image">
												<img src="/plugins/modulepara/configdata/images/error.svg" alt="" width="150" />
											</div>
											<h1>您的网站未开通</h1>
													<p class="jump">您的网站未开通（使用期限：'.$time_start.'~'.$time_end.'），请联系管理员开通...</p>
												<p class="clearfix">
													<a href="/" class="btn btn-grey">访问首页</a>
													<a href="http://www.ywzongli.com/" class="btn btn-primary" target="_blank">访问官网</a>
												</p>
										</div>
										<div class="copyright">
											<p>Powered by <a href="http://www.ywzongli.com/">ZONGLI</a></p>
										</div>
										</body>
										</html>';
	$websitetimehtml['end_website'] = '<!DOCTYPE html>
										<html>
										<head>
											<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
											<title>温馨提示</title>
											<meta name="viewport" content="width=device-width, initial-scale=1.0">
											<style type="text/css">
												*{box-sizing:border-box;margin:0;padding:0;font-family:Lantinghei SC,Open Sans,Arial,Hiragino Sans GB,Microsoft YaHei,"微软雅黑",STHeiti,WenQuanYi Micro Hei,SimSun,sans-serif;-webkit-font-smoothing:antialiased}
												body{padding:70px 0;background:#edf1f4;font-weight:400;font-size:1pc;-webkit-text-size-adjust:none;color:#333}
												a{outline:0;color:#3498db;text-decoration:none;cursor:pointer}
												.system-message{margin:20px 5%;padding:40px 20px;background:#fff;box-shadow:1px 1px 1px hsla(0,0%,39%,.1);text-align:center}
												.system-message h1{margin:0;margin-bottom:9pt;color:#444;font-weight:400;font-size:40px}
												.system-message .jump,.system-message .image{margin:20px 0;padding:0;padding:10px 0;font-weight:400}
												.system-message .jump{font-size:14px}
												.system-message .jump a{color:#333}
												.system-message p{font-size:9pt;line-height:20px}
												.system-message .btn{display:inline-block;margin-right:10px;width:138px;height:2pc;border:1px solid #44a0e8;border-radius:30px;color:#44a0e8;text-align:center;font-size:1pc;line-height:2pc;margin-bottom:5px;}
												.success .btn{border-color:#69bf4e;color:#69bf4e}
												.error .btn{border-color:#ff8992;color:#ff8992}
												.info .btn{border-color:#3498db;color:#3498db}
												.copyright p{width:100%;color:#919191;text-align:center;font-size:10px}
												.system-message .btn-grey{border-color:#bbb;color:#bbb}
												.clearfix:after{clear:both;display:block;visibility:hidden;height:0;content:"."}
												@media (max-width:768px){body {padding:20px 0;}}
													@media (max-width:480px){.system-message h1{font-size:30px;}}
											</style>
										</head>
										<body>
										<div class="system-message error">
											<div class="image">
												<img src="/plugins/modulepara/configdata/images/error.svg" alt="" width="150" />
											</div>
											<h1>您的网站已到期，网站自动关闭</h1>
													<p class="jump">您的网站已过期，网站自动闭关（使用期限：'.$time_start.'~'.$time_end.'），请联系管理员续费...</p>
												<p class="clearfix">
													<a href="/" class="btn btn-grey">访问首页</a>
													<a href="http://www.ywzongli.com/" class="btn btn-primary" target="_blank">访问官网</a>
												</p>
										</div>
										<div class="copyright">
											<p>Powered by <a href="http://www.ywzongli.com/">ZONGLI</a></p>
										</div>
										</body>
										</html>';	
	
	return $websitetimehtml;
}

// 前台自定义模块参数分类标题html
function hook_getcolumnparameterclasshtmlsite($param)
{
	$data = $param['data'];
	$parahtml = '<h3 class="classtypeblock">-- '.$data['title'].' --</h3>';
	if($data['endok'] == 1)
	{
		$parahtml = '<hr />';	
	}
				  
	return $parahtml;
}

// 后台自定义模块参数分类标题html
function hook_getcolumnparameterclasshtmladmin($data)
{
	$parahtml = '<tr class="blocktitle">
					<td colspan="2">-- '.$data['title'].' --</td>
				  </tr>';
	if($data['endok'] == 1)
	{
		$parahtml = '<tr class="blocktitle">
					<td colspan="2">-- 更多内容 --</td>
				  </tr>';	
	}
				  
	return $parahtml;
}

// 商家自定义模块参数分类标题html
function hook_getcolumnparameterclasshtmlsupplier($data)
{
	$parahtml = '<tr class="blocktitle">
					<td colspan="2">-- '.$data['title'].' --</td>
				  </tr>';
	if($data['endok'] == 1)
	{
		$parahtml = '<tr class="blocktitle">
					<td colspan="2">&nbsp;</td>
				  </tr>';	
	}
				  
	return $parahtml;
}

// 商家前台自定义模块参数分类标题html
function hook_getcolumnparameterclasshtmlsupplieruser($data)
{
	$parahtml = '<div class="form-group blocktitle">
					-- '.$data['title'].' --
				  </div>';
	if($data['endok'] == 1)
	{
		$parahtml = '<div class="form-group blocktitle">
					-- 更多信息 --
				  </div>';	
	}
				  
	return $parahtml;
}

// 前台自定义模块参数html
function hook_getcolumnparameterhtmlsite($param)
{
	global $configlang;
	
	$data = $param['data'];
	$columnparahtml = $param['columnparahtml'];
	
	$type = $data['type'];
	$parahtml = "";
	$data['notempty'] = $data['condition'] ? "required" : "";
	$data['tipContent'] = $data['paratip'] ? $data['paratip'] : $configlang['Please_fill_in'].$data['title'];
	
	// 下拉
	if($type == 1)
	{
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$data['selecthtml'] .= '<option value="'.$val['info'].'" '.$val['select'].'>'.$val['info'].'</option>';
		}
		$data['fieldname'] = 'parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']';
		$parahtml = phpvarok($columnparahtml['type1'], $data);
	
	// 文本	
	}else if($type == 2)
	{
		$data['fieldname'] = 'parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']';
		$parahtml = phpvarok($columnparahtml['type2'], $data);
		
	// 多选	
	}else if($type == 3)
	{		
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$data['duohtml'] .= '<label for="attrpara_'.$data['id'].'_'.$val['id'].'" style="color:#666"><input name="parameter['.$data['reckey'].''.$data['typename'].'attrpara_'.$data['attrid'].'][]" type="checkbox" value="'.$val['info'].'" id="attrpara_'.$data['id'].'_'.$val['id'].'" '.$val['select'].' '.$data['notempty'].' /> <span>'.$val['info'].'</span></label>&nbsp;&nbsp;';
		}		  			
		$data['fieldname'] = 'parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']';
		$parahtml = phpvarok($columnparahtml['type3'], $data);
		
	
	// 附件		
	}else if($type == 4 || $type == 6)
	{
		$data['uploadhtml'] = hook_uploadfile($data['i'],"article","parameter[".$data['typename'].'attrpara_'.$data['attrid']."]",$data['filevalue']);
		$parahtml = phpvarok($columnparahtml['type4'], $data);
		
	// 单选	
	}else if($type == 5)
	{
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$data['ridohtml'] .= '<label for="attrpara_'.$data['id'].'_'.$val['id'].'" style="color:#666"><input name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" type="radio" value="'.$val['info'].'" id="attrpara_'.$data['id'].'_'.$val['id'].'" '.$val['select'].' '.$data['notempty'].' /> <span>'.$val['info'].'</span></label>&nbsp;&nbsp;';
		}		 
		$data['fieldname'] = 'parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']';
		$parahtml = phpvarok($columnparahtml['type5'], $data);
	
	// 简短		
	}else{
		$inputtype = $type == 7 ? "number" : "text";
		$data['inputtype'] = $type == 8 ? $data['inputtype'] : $inputtype;// 自定义表单参数
		$data['fieldname'] = 'parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']';
		$parahtml = phpvarok($columnparahtml['type0'], $data);
	}
	
	return $parahtml;
}

// 后台自定义模块参数html
function hook_getcolumnparameterhtmladmin($data)
{
	global $configlang;
	
	$type = $data['type'];
	$parahtml = "";
	$notempty = $data['condition'] ? "required" : "";
	$title = $data['title'];
	$data['title'] = $data['condition'] ? '<span class="form-required">*</span>'.$data['title'] : $data['title'];
	$tipContent = $configlang['Please_fill_in'].$title;
	$tipMessage = "";
	if($data['paratip'])
	{
		$tipMessage = '<div style="color:#999;margin-top:3px;">'.$data['paratip'].'</div>';
	}
	
	// 下拉
	if($type == 1)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td>
					  <select class="form-control" name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" '.$notempty.'>
						  <option value="">请选择列表</option>';
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$parahtml .= '<option value="'.$val['info'].'" '.$val['select'].'>'.$val['info'].'</option>';
		}
		$parahtml .= ' </select>
					  </td>
					</tr>';
	
	// 文本	
	}else if($type == 2)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td>
					  <textarea class="form-control" type="text" name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" placeholder="'.$tipContent.'" style="height:120px;" '.$notempty.' />'.$data['value'].'</textarea>'.$tipMessage.'
					  </td>
					</tr>';
		
	// 多选	
	}else if($type == 3)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td><div class="checkbox">';
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$parahtml .= '<label for="attrpara_'.$data['id'].'_'.$val['id'].'" style="color:#666"><input name="parameter['.$data['reckey'].''.$data['typename'].'attrpara_'.$data['attrid'].'][]" type="checkbox" value="'.$val['info'].'" id="attrpara_'.$data['id'].'_'.$val['id'].'" '.$val['select'].' '.$notempty.' /> <span>'.$val['info'].'</span></label>&nbsp;&nbsp;';
		}		  
		$parahtml .= '</div></td>
					</tr>';
	
	// 附件		
	}else if($type == 4 || $type == 6)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td>
					  '.hook_uploadfile($data['i'],"article","parameter[".$data['typename'].'attrpara_'.$data['attrid']."]",$data['filevalue']).'
					  </td>
					</tr>';
		
	// 单选	
	}else if($type == 5)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td><div class="radio">';
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$parahtml .= '<label for="attrpara_'.$data['id'].'_'.$val['id'].'" style="color:#666"><input name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" type="radio" value="'.$val['info'].'" id="attrpara_'.$data['id'].'_'.$val['id'].'" '.$val['select'].' '.$notempty.' /> <span>'.$val['info'].'</span></label>&nbsp;&nbsp;';
		}		  
		$parahtml .= '</div></td>
					</tr>';
	
	// 简短		
	}else{
		$inputtype = $type == 7 ? "number" : "text";
		$inputtype = $type == 8 ? $data['inputtype'] : $inputtype;// 自定义表单参数
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td>
					  <input class="form-control" type="'.$inputtype.'" name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" placeholder="'.$tipContent.'" value="'.$data['value'].'" '.$notempty.' />'.$tipMessage.'
					  </td>
					</tr>';
	}
	
	return $parahtml;
}

// 后台反馈自定义模块参数html
function hook_getcolumnparameterhtmladminfeedback($data)
{
	$type = $data['type'];
	$parahtml = "";
	$tipMessage = "";
	if($data['paratip'])
	{
		$tipMessage = '<div style="color:#999;margin-top:3px;">'.$data['paratip'].'</div>';
	}
	
	// 下拉
	if($type == 1)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td style="padding-right:30%!important;">'.$data['value'].'</td>
					</tr>';
	
	// 文本	
	}else if($type == 2)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td style="padding-right:30%!important;">'.$data['value'].$tipMessage.'</td>
					</tr>';
		
	// 多选	
	}else if($type == 3)
	{
		$data['value'] = getarrtostr(",",$data['value']);
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td style="padding-right:30%!important;">'.$data['value'].'</td>
					</tr>';
	
	// 附件		
	}else if($type == 4 || $type == 6)
	{
		// 文件
		if($type == 4)
		{
			$parahtml = '<tr>
						  <th>'.$data['title'].'</th>
						  <td style="padding-right:30%!important;"><a href="/upload/'.$data['value'].'" target="_blank">下载文件</a></td>
						</tr>';
		}
		// 图片
		if($type == 6)
		{
			$parahtml = '<tr>
						  <th>'.$data['title'].'</th>
						  <td style="padding-right:30%!important;"><a href="javascript:openImageLayer(\'configimg'.$data['id'].'\');"><img src="/upload/'.$data['value'].'" style="max-width:320px;" /></a>
						  <div id="configimg'.$data['id'].'" style="display:none;"><img src="/upload/'.$data['value'].'" style="max-width:800px;" /></div></td>
						</tr>';
		}
		
	// 单选	
	}else if($type == 5)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td style="padding-right:30%!important;">'.$data['value'].'</td>
					</tr>';
	
	// 简短		
	}else{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td style="padding-right:30%!important;">'.$data['value'].$tipMessage.'</td>
					</tr>';
	}
	
	$parahtml = hook_getcolumnparameterhtmladmin($data);
	
	return $parahtml;
}

// 商家自定义模块参数html
function hook_getcolumnparameterhtmlsupplier($data)
{
	global $configlang;
	
	$type = $data['type'];
	$parahtml = "";
	$notempty = $data['condition'] ? "required" : "";
	$title = $data['title'];
	$data['title'] = $data['condition'] ? '<span class="form-required">*</span>'.$data['title'] : $data['title'];
	$tipContent = $configlang['Please_fill_in'].$title;
	$tipMessage = "";
	if($data['paratip'])
	{
		$tipMessage = '<div style="color:#999;margin-top:3px;">'.$data['paratip'].'</div>';
	}
	
	// 下拉
	if($type == 1)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td>
					  <select class="form-control" name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" '.$notempty.'>
						  <option value="">请选择列表</option>';
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$parahtml .= '<option value="'.$val['info'].'" '.$val['select'].'>'.$val['info'].'</option>';
		}
		$parahtml .= ' </select>
					  </td>
					</tr>';
	
	// 文本	
	}else if($type == 2)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td>
					  <textarea class="form-control" type="text" name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" placeholder="'.$tipContent.'" style="height:120px;" '.$notempty.' />'.$data['value'].'</textarea>'.$tipMessage.'
					  </td>
					</tr>';
		
	// 多选	
	}else if($type == 3)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td><div class="checkbox">';
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$parahtml .= '<label for="attrpara_'.$data['id'].'_'.$val['id'].'" style="color:#666"><input name="parameter['.$data['reckey'].''.$data['typename'].'attrpara_'.$data['attrid'].'][]" type="checkbox" value="'.$val['info'].'" id="attrpara_'.$data['id'].'_'.$val['id'].'" '.$val['select'].' '.$notempty.' /> <span>'.$val['info'].'</span></label>&nbsp;&nbsp;';
		}		  
		$parahtml .= '</div></td>
					</tr>';
	
	// 附件		
	}else if($type == 4 || $type == 6)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td>
					  '.hook_uploadfile($data['i'],"article","parameter[".$data['typename'].'attrpara_'.$data['attrid']."]",$data['filevalue']).'
					  </td>
					</tr>';
		
	// 单选	
	}else if($type == 5)
	{
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td><div class="radio">';
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$parahtml .= '<label for="attrpara_'.$data['id'].'_'.$val['id'].'" style="color:#666"><input name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" type="radio" value="'.$val['info'].'" id="attrpara_'.$data['id'].'_'.$val['id'].'" '.$val['select'].' '.$notempty.' /> <span>'.$val['info'].'</span></label>&nbsp;&nbsp;';
		}		  
		$parahtml .= '</div></td>
					</tr>';
	
	// 简短		
	}else{
		$inputtype = $type == 7 ? "number" : "text";
		$inputtype = $type == 8 ? $data['inputtype'] : $inputtype;// 自定义表单参数
		$parahtml = '<tr>
					  <th>'.$data['title'].'</th>
					  <td>
					  <input class="form-control" type="'.$inputtype.'" name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" placeholder="'.$tipContent.'" value="'.$data['value'].'" '.$notempty.' />'.$tipMessage.'
					  </td>
					</tr>';
	}
	
	return $parahtml;
}

// 商家前台自定义模块参数html
function hook_getcolumnparameterhtmlsupplieruser($data)
{
	global $configlang;
	
	$type = $data['type'];
	$parahtml = "";
	$notempty = $data['condition'] ? "required" : "";
	$title = $data['title'];
	$data['title'] = $data['condition'] ? '<span class="form-required">*</span>'.$data['title'] : $data['title'];
	$tipContent = $configlang['Please_fill_in'].$title;
	$tipMessage = "";
	if($data['paratip'])
	{
		$tipMessage = '<div style="color:#999;margin-top:3px;">'.$data['paratip'].'</div>';
	}
	
	// 下拉
	if($type == 1)
	{
		$parahtml = '<div class="form-group row">
						<label class="col-12 col-sm-2 col-form-label text-right">'.$data['title'].'</label>
						<div class="col-12 col-sm-9 listbox">
					  <select class="form-control" name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" '.$notempty.'>
						  <option value="">请选择列表</option>';
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$parahtml .= '<option value="'.$val['info'].'" '.$val['select'].'>'.$val['info'].'</option>';
		}
		$parahtml .= ' </select>
						</div>
					</div>';
	
	// 文本	
	}else if($type == 2)
	{
		$parahtml = '<div class="form-group row">
					  <label class="col-12 col-sm-2 col-form-label text-right">'.$data['title'].'</label>
					  <div class="col-12 col-sm-9 listbox">
					  <textarea class="form-control" type="text" name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" placeholder="'.$tipContent.'" style="height:120px;" '.$notempty.' />'.$data['value'].'</textarea>'.$tipMessage.'
					  </div>
					</div>';
		
	// 多选	
	}else if($type == 3)
	{
		$parahtml = '<div class="form-group row">
					  <label class="col-12 col-sm-2 col-form-label text-right">'.$data['title'].'</label>
					  <div class="col-12 col-sm-9 listbox" style="margin-top:5px;">';
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$parahtml .= '<label for="attrpara_'.$data['id'].'_'.$val['id'].'" style="color:#666"><input name="parameter['.$data['reckey'].''.$data['typename'].'attrpara_'.$data['attrid'].'][]" type="checkbox" value="'.$val['info'].'" id="attrpara_'.$data['id'].'_'.$val['id'].'" '.$val['select'].' '.$notempty.' /> <span>'.$val['info'].'</span></label>&nbsp;&nbsp;';
		}		  
		$parahtml .= '</div>
					</div>';
	
	// 附件		
	}else if($type == 4 || $type == 6)
	{
		$parahtml = '<div class="form-group row">
					  <label class="col-12 col-sm-2 col-form-label text-right">'.$data['title'].'</label>
					  <div class="col-12 col-sm-9 listbox">
					  '.hook_uploadfile($data['i'],"article","parameter[".$data['typename'].'attrpara_'.$data['attrid']."]",$data['filevalue']).'
					  </div>
					</div>';
		
	// 单选	
	}else if($type == 5)
	{
		$parahtml = '<div class="form-group row">
					  <label class="col-12 col-sm-2 col-form-label text-right">'.$data['title'].'</label>
					  <div class="col-12 col-sm-9 listbox" style="margin-top:5px;">';
		foreach($data['attrinfo'] as $key=>$val)
		{			  
			$parahtml .= '<label for="attrpara_'.$data['id'].'_'.$val['id'].'" style="color:#666"><input name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" type="radio" value="'.$val['info'].'" id="attrpara_'.$data['id'].'_'.$val['id'].'" '.$val['select'].' '.$notempty.' /> <span>'.$val['info'].'</span></label>&nbsp;&nbsp;';
		}		  
		$parahtml .= '</div>
					</div>';
	
	// 简短		
	}else{
		$inputtype = $type == 7 ? "number" : "text";
		$inputtype = $type == 8 ? $data['inputtype'] : $inputtype;// 自定义表单参数
		$parahtml = '<div class="form-group row">
					  <label class="col-12 col-sm-2 col-form-label text-right">'.$data['title'].'</label>
					  <div class="col-12 col-sm-9 listbox">
					  <input class="form-control" type="'.$inputtype.'" name="parameter['.$data['reckey'].'attrpara_'.$data['attrid'].']" placeholder="'.$tipContent.'" value="'.$data['value'].'" '.$notempty.' />'.$tipMessage.'
					  </div>
					</div>';
	}
	
	return $parahtml;
}

// 后台商品模块参数html
function hook_getadminshopparameterhtmladmin($data,$otherdata)
{	
	$parahtml = '<tr>
				  <th>规格属性</th>
				  <td>
				  <script type="text/javascript" src="/plugins/modulepara/configdata/backend/js/sku.js"></script>
				  <link type="text/css" rel="stylesheet" href="/plugins/modulepara/configdata/backend/css/sku.css"/>
				  <div class="div_content">
					<div class="div_contentlist">';
	foreach($data as $key=>$val)
	{
		$parahtml .= '<ul class="Father_Title"><li data-checkattrid="'.$val['id'].'">'.$val['title'].'</li></ul>
						<ul class="Father_Item Father_Item'.$key.'">';
							foreach($val['attrlist'] as $key2=>$val2)
							{
								$parahtml .= '<li class="li_width"><label><input data-checkboxid="'.$val2['id'].'" type="checkbox" class="chcBox_Width" value="'.$val2['title'].'" '.$val2['checkok'].' />'.$val2['title'].'<span class="li_empty"></span></label><i></i></li>';  
							}
		$parahtml .= '</ul>
						<div style="clear:both;"></div>';
	}
	foreach($otherdata['goodsparameter'] as $key=>$val)
	{
		$parahtml .= '<input type="hidden" id="'.$key.'" value="'.$val.'" />';	
	}
		$parahtml .= '</div>
					<div class="div_contentlist2">
						<ul>
							<li><div id="createTable"></div></li>
						</ul>
					</div>
				</div>
				<script>
				//SKU信息
				step.Creat_Table();
				$(".div_contentlist label").bind("change", function () {
					step.Creat_Table();
				});
				</script>
				  </td>
				 </tr>';
				 
	return $parahtml;
}

// 商家商品模块参数html
function hook_getadminshopparameterhtmlsupplier($data,$otherdata)
{	
	$parahtml = '<tr>
				  <th>规格属性</th>
				  <td>
				  <script type="text/javascript" src="/plugins/modulepara/configdata/backend/js/sku.js"></script>
				  <link type="text/css" rel="stylesheet" href="/plugins/modulepara/configdata/backend/css/sku.css"/>
				  <div class="div_content">
					<div class="div_contentlist">';
	foreach($data as $key=>$val)
	{
		$parahtml .= '<ul class="Father_Title"><li data-checkattrid="'.$val['id'].'">'.$val['title'].'</li></ul>
						<ul class="Father_Item Father_Item'.$key.'">';
							foreach($val['attrlist'] as $key2=>$val2)
							{
								$parahtml .= '<li class="li_width"><label><input data-checkboxid="'.$val2['id'].'" type="checkbox" class="chcBox_Width" value="'.$val2['title'].'" '.$val2['checkok'].' />'.$val2['title'].'<span class="li_empty"></span></label><i></i></li>';  
							}
		$parahtml .= '</ul>
						<div style="clear:both;"></div>';
	}
	foreach($otherdata['goodsparameter'] as $key=>$val)
	{
		$parahtml .= '<input type="hidden" id="'.$key.'" value="'.$val.'" />';	
	}
		$parahtml .= '</div>
					<div class="div_contentlist2">
						<ul>
							<li><div id="createTable" class="table-responsive"></div></li>
						</ul>
					</div>
				</div>
				<script>
				//SKU信息
				step.Creat_Table();
				$(".div_contentlist label").bind("change", function () {
					step.Creat_Table();
				});
				</script>
				  </td>
				 </tr>';
				 
	return $parahtml;
}

// 商家前台商品模块参数html
function hook_getadminshopparameterhtmlsupplieruser($data,$otherdata)
{	
	$parahtml = '<div class="form-group row">
				  <label class="col-12 col-sm-2 col-form-label text-right">规格属性</label>
				  <div class="col-12 col-sm-9 listbox">
				  <script type="text/javascript" src="/plugins/modulepara/configdata/backend/js/sku.js"></script>
				  <link type="text/css" rel="stylesheet" href="/plugins/modulepara/configdata/backend/css/sku.css"/>
				  <div class="div_content">
					<div class="div_contentlist">';
	foreach($data as $key=>$val)
	{
		$parahtml .= '<ul class="Father_Title"><li data-checkattrid="'.$val['id'].'">'.$val['title'].'</li></ul>
						<ul class="Father_Item Father_Item'.$key.'">';
							foreach($val['attrlist'] as $key2=>$val2)
							{
								$parahtml .= '<li class="li_width"><label><input data-checkboxid="'.$val2['id'].'" type="checkbox" class="chcBox_Width" value="'.$val2['title'].'" '.$val2['checkok'].' />'.$val2['title'].'<span class="li_empty"></span></label><i></i></li>';  
							}
		$parahtml .= '</ul>
						<div style="clear:both;"></div>';
	}
	foreach($otherdata['goodsparameter'] as $key=>$val)
	{
		$parahtml .= '<input type="hidden" id="'.$key.'" value="'.$val.'" />';	
	}
		$parahtml .= '</div>
					<div class="div_contentlist2">
						<ul>
							<li><div id="createTable" class="table-responsive"></div></li>
						</ul>
					</div>
				</div>
				<script>
				//SKU信息
				step.Creat_Table();
				$(".div_contentlist label").bind("change", function () {
					step.Creat_Table();
				});
				</script>
			  </div>
			</div>';
				 
	return $parahtml;
}

?>